package unamur.iodass.communication.messages;




public class Deliver extends Message{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7063002082458106193L;
	
	private long isbn;
	private ClientSerialised client;
	private BookStore bookstore;

	
	public Deliver(BookStore bookstore, ClientSerialised client, long isbn ) {
		this.bookstore = bookstore;
		this.client = client;
		this.isbn = isbn;
		
		
	}
	
	public long getIsbn() {
		return isbn;
	}
	
	public ClientSerialised getClient() {
		return client;
	}
	public BookStore getBookstore() {
		return bookstore;
	}
	public void setIsbn(long isbn) {
		this.isbn = isbn;
	}
	public void setClient(ClientSerialised client) {
		this.client = client;
	}
	public void setBookstore(BookStore bookstore) {
		this.bookstore = bookstore;
	}

	public String toString() {
		return " BookStore : " + this.bookstore.getName() + "\tName : " + this.client.getNom() +  "\tISBN : " + this.isbn;
	}

}
